﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>


<%@ Register Src="~/UserCtrl-PhieuChi/Header.ascx" TagName="Header" TagPrefix="gc_header" %>
<%@ Register Src="~/UserCtrl-PhieuChi/Footer.ascx" TagName="Footer" TagPrefix="gc_footer" %>

<%@ Register Src="~/UserCtrl-PhieuChi/PagerTop.ascx" TagName="PagerTop" TagPrefix="gc_pagertop" %>

<%@ Register Src="~/UserCtrl-PhieuChi/MainMenu.ascx" TagName="MainMenu" TagPrefix="gc_MainMenu" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Anh Xuan - Technology</title>

    <!-- Le styles -->
    <link href="../UserControl/bootstrap/assets/css/bootstrap.css" rel="stylesheet" />
    <link href="../UserControl/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" />
    <link href="../UserControl/bootstrap/assets/css/docs.css" rel="stylesheet" />
    <link href="../UserControl/bootstrap/assets/js/google-code-prettify/prettify.css" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="../UserControl/style_home.css" />

    <link rel="stylesheet" href="../UserControl/colorbox-master/css/colorbox.css" />

    <link rel="stylesheet" type="text/css" href="../UserControl/styles-12.css" />
    <link rel="stylesheet" href="../UserControl/datepicker/css/datepicker.css" />
    <link rel="stylesheet" href="../UserControl/jPager/css/custom-pager.css" />
    <link rel="stylesheet" href="../UserControl/jPager/css/jPaginator.css" />

    <!-- jTable style file -->
    <link href="../jsGobalLib/Scripts/jtable/themes/lightcolor/green/jtable.min.css" rel="stylesheet" type="text/css" />

    <link rel="stylesheet" type="text/css" href="../JSGobalLib/jquery-ui-themes-1.10.3/themes/ui-lightness/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="../JSGobalLib/jquery-ui-themes-1.10.3/themes/ui-lightness/jquery.ui.theme.css" />
    <script type="text/javascript" src="../jsGobalLib/xdate.js"></script>
    <script type="text/javascript" src="../jsGobalLib/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../jsGobalLib/jquery-migrate-1.2.1.js"></script>

    <script type="text/javascript" src="../jsGobalLib/jquery-ui-1.10.3/ui/jquery-ui.js"></script>
    <script type="text/javascript" src="../jsGobalLib/jquery.validate.js"></script>

    <script type="text/javascript" src="../UserControl/colorbox-master/jquery.colorbox.js"></script>
    <script type="text/javascript" src="../UserControl/datepicker/js/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="../UserControl/jPager/js/jPaginator-min.js"></script>
    <script type="text/javascript" src="../jsGobalLib/PageInitSize.js"></script>

    <script src='../Common/gc_ShowDivData.js' type='text/javascript'></script>
    <script type="text/javascript" src="../common/gcGlobalForm.js"></script>
    <script type="text/javascript" src="../common/gcGlobal.js"></script>
    <script type="text/javascript" src="../common/Kernel.js"></script>
    <script type="text/javascript" src="../js/o.js"></script>



    <script src="../jsGobalLib/Scripts/jtablesite.js" type="text/javascript"></script>
    <!-- A helper library for JSON serialization -->
    <script type="text/javascript" src="../jsGobalLib/Scripts/jtable/external/json2.js"></script>
    <!-- Core jTable script file -->
    <script type="text/javascript" src="../jsGobalLib/Scripts/jtable/jquery.jtable.js"></script>
    <!-- ASP.NET Web Forms extension for jTable -->
    <script type="text/javascript" src="../jsGobalLib/Scripts/jtable/extensions/jquery.jtable.aspnetpagemethods.js"></script>

    <script type="text/javascript">
        //---------------------------------------------
        function fun_BreakControlEnter(id) {
            //if (id == 'VatTuIdP72')
            //    return false;
            return false;
        }
        //---------------------------------------------

        function FocusCmbText(strId, e) {
            cur_gb_CotrolID = strId;
            if (cur_gb_CotrolID)
                gc_GetListData(strId, e);
        }


        function gc_GetListData(strId, ev) {
            var ev = ev || window.event;
            var keyCode = (ev == null) ? -1 : (ev.keyCode || ev.which);
            /* tab null backspace , minus*/
            if (keyCode == 9 || keyCode == 16 || keyCode == 17) {
                $("#divShowID").hide();
                return;
            }
            else if (keyCode == 40) {
                gc_fn_Gobal_ProcessArrowDown(strId, ev);
                ev.preventDefault();
                return;
            }
            else if (keyCode == 38) {
                gc_fn_Gobal_ProcessArrowUp(strId, ev);
                ev.preventDefault();
                return;
            }
            else if (keyCode == 13) {
                var ctrlTmp = $get('itemid' + cur_gb_Index.toString());
                if (ctrlTmp != null)
                    ctrlTmp.onclick();

                return;
            }
            cur_gb_Obj = gcGobal_INCOM_Receipt.create();
            cur_gb_Obj.Id = "-9999";
            cur_gb_CotrolID = strId;

            /*check have space at the end*/
            var value = $get(cur_gb_CotrolID).value;
            //        if (value.indexOf('101'))
            //            value += ' ';
            if (value.length > 0 && value[value.length - 1] != ' ')
                return true;
            /*end check*/
            cur_gb_FlagControlCmb = 0;
            gb_strFilter = ' '; /*reset filter*/
            if (cur_gb_CotrolID) {
                cur_gb_Index = -1;


                $("#" + cur_gb_CotrolID).removeClass("gc-style-form-combo");
                $("#" + cur_gb_CotrolID).addClass("loader");
                //không cần truyền user vì dư thừa chúng ta có thể check dc bằng server.
                if (cur_gb_CotrolID == 'cmb_CourseID') /* check ID for get object*/
                    WSgcGobal_TRAINNING_COURSE_CLASS.getCourseIdName(value, gb_NumComboBox, gb_strFilter, cur_gb_Obj, cur_gb_Account, showPopupDivData, gc_gb_fn_LoadComboFail);
                else if (cur_gb_CotrolID == 'gcReportTypeID') {
                    cur_gb_FlagControlCmb = 1;
                    updateDivReport(StrStatusKH);
                }
            }
        }
        var o73admin = {//gcGobal_INCOM_Receipt 
            _v: ['', 'Id', 'Mã chứng từ ', 'Số chứng từ ', 'Mã số HĐ ', 'Ngày lập ', 'Chi nhánh ', 'Nhóm khách hàng ', 'Khách hàng ', 'Tổng tiền ', 'Thực thu ', 'Nợ lại ', 'Diễn giải ', 'Tiền sách ', 'Phụ thu ', 'Người thu ', 'Ngày giao hàng ', 'Thanh toán hết ', 'Khuyến mãi ', 'Trạng thái ', 'isPrinted', 'Bank ', 'Card ', 'Danh mục thu ', 'Lớp học ', 'Hole ', 'Hole ', 'Hole ', 'Hole ', 'Hole ', 'Hole ', 'Hole ', 'Hole ', 'isPrgAccountId', 'isPrgInUse', 'isPrgCreateDate', 'isPrgWaitingConfirmStatus', 'isPrgbAdminDeleted', 'isPrgbUserDeleted', 'isPrgbShow', 'isPrgOrdered', 'isPrgVNKoDau', 'isPrgSmField', 'isPrgPartComp', 'isPrgEncriptData', 'isPrgDescriptData', 'isPrgAccountUpdateId', ],
            _e: ['gcGobal_INCOM_Receipt', 'Id', 'MaCT', 'SoCT', 'MSHDId', 'NgayLap', 'BranchId', 'LoaiKhachId', 'KHId', 'TongTien', 'ThucThu', 'NoLai', 'DienGiai', 'VAT', 'PhuThu', 'NhanVienId', 'NgayHen', 'isFinished', 'DiscountCust', 'StatusId', 'isPrinted', 'BankReceiptId', 'CardPaymentId', 'OrderId', 'ClassId', 'Keep01', 'Keep02', 'Keep03', 'Keep04', 'Space01', 'Space02', 'Space03', 'SpaceId', 'isPrgAccountId', 'isPrgInUse', 'isPrgCreateDate', 'isPrgWaitingConfirmStatus', 'isPrgbAdminDeleted', 'isPrgbUserDeleted', 'isPrgbShow', 'isPrgOrdered', 'isPrgVNKoDau', 'isPrgSmField', 'isPrgPartComp', 'isPrgEncriptData', 'isPrgDescriptData', 'isPrgAccountUpdateId', ],
            _d: ["00,00,1,1,0,,,,", "01,01,1,4,0,,,,|02,02,1,4,0,,,,|03,03,1,1,1,gcGobal_INCOM_Contract,Name,47,", "04,04,1,5,0,,,,|05,05,1,1,1,gcGobal_COMP_Branch,CODE,48,|07,07,1,1,1,gcGobal_CUST_Customer,HoTen,50,|14,14,1,1,1,gcGobal_COMP_EmployeeLife,MaBarCode,51,", "06,06,1,1,1,gcGobal_CUST_CustomerType,Code,49,", "08,08,1,2,0,,,,|09,09,1,2,0,,,,|10,10,1,2,0,,,,", "11,11,1,4,0,,,,", "12,12,0,2,0,,,,|13,13,1,2,0,,,,|17,17,1,2,0,,,,|20,20,0,1,0,,,,|21,21,0,1,0,,,,|23,23,1,1,1,gcGobal_TRAINNING_COURSE_CLASS,Code,54,", "15,15,1,5,0,,,,|18,18,1,1,1,gcGobal_INCOM_Status,Code,52,|22,22,1,1,1,gcGobal_LITERAL_DANHMUC_THU,Code,53,", "16,16,0,9,0,,,,", "19,19,0,1,0,,,,", "24,24,0,4,0,,,,", "25,25,0,4,0,,,,", "26,26,1,4,0,,,,", "27,27,0,4,0,,,,", "28,28,0,2,0,,,,", "29,29,0,4,0,,,,", "30,30,0,5,0,,,,", "31,31,0,1,0,,,,", "32,32,0,1,0,,,,", "33,33,0,1,0,,,,", "34,34,0,5,0,,,,", "35,35,0,1,0,,,,", "36,36,0,1,0,,,,", "37,37,0,1,0,,,,", "38,38,0,1,0,,,,", "39,39,,1,0,,,,", "40,40,1,4,0,,,,", "41,41,1,4,0,,,,", "42,42,1,4,0,,,,", "43,43,1,1,0,,,,", "44,44,1,1,0,,,,", "45,45,1,1,0,,,,", ],
            _f: [], _r: [], _coj: {}, __id: 73, _sy: 'dlg_cl', id: 'o73', cssb: 'inputBtnBottomV2', $dw: null, dwcss: 'login_sign',
        };

        /**/
        $(document).ready(function () {

            $("#ThemVuViecBtn").click(function (ev) {
                _gb.pr(o73).ff(true, o73);
                _gb.rf(o73);
                gb_curBoxDlg = $("#ThemVuViecBtn").colorbox({ inline: true, width: "97%", height: "97%", href: "#o73", title: _gb.ll(0, o73) });
            });


            //$("#VatTuIdP72").keyup(function (e) {
            //    if (e.which == 13 || e.keyCode == 13) {
            //        if (e.ctrlKey == 1 || e.ctrlKey == true) {
            //            // viêt code vào đây
            //            $('#gcGobal_INCOM_Receipt_Detail_NewCust').click();
            //        }
            //    }
            //});

            //$("#VuViecIdP69").keyup(function (e) {
            //    if (e.which == 13 || e.keyCode == 13) {
            //        if (e.ctrlKey == 1 || e.ctrlKey == true) {
            //            // viêt code vào đây
            //            $('#gcGobal_INCOM_Payment_Detail_NewCust').click();
            //        }
            //    }
            //});

            ////addd click
            //$("#profileTab").click(function (ev) {

            //    gb_strFilter = '';
            //    gb_strSort = " Id asc";
            //    //------------------------------------------------------------------
            //    // xóa dữ liệu các tab.
            //    $(".tab-content").children().html("");
            //    // lấy dữ liệu tab hiện tại
            //    var curTab = $(".tab-content").children().filter('.active');
            //    //-----------------------------------------------------------------

            //    //----------------------------------------------------------------
            //    // xử lý đưa loadding vào tab đã click
            //    var $divinfo = $("#profileTabContent");
            //    $divinfo.html('&nbsp;');
            //    $divinfo.addClass("loaderleft");
            //    //---------------------------------------------------------------
            //    //var obj = gcGobal_INCOM_Payment.create();
            //    //WSgcGobal_INCOM_Payment.GetData1Item(obj, 0, gb_PageSize, gb_strSort, gb_strFilter, 'false', cur_gb_Account, gc_fn_LayoutListData1Item);
            //    gb_strSort = "";
            //});

            //$("#todayTab").click(function (ev) {
            //    gb_strFilter = '';
            //    gb_strSort = " Id asc";
            //    //------------------------------------------------------------------
            //    // xóa dữ liệu các tab.
            //    $(".tab-content").children().html("");
            //    // lấy dữ liệu tab hiện tại
            //    var curTab = $(".tab-content").children().filter('.active');
            //    //-----------------------------------------------------------------

            //    //----------------------------------------------------------------
            //    // xử lý đưa loadding vào tab đã click
            //    var $divinfo = $("#todayTabContent");
            //    $divinfo.html('&nbsp;');
            //    $divinfo.addClass("loaderleft");
            //    //---------------------------------------------------------------

            //    WSgcGobal_QL_ThuChi.GetDataItemToDay(0, gb_PageSize, gb_strSort, gb_strFilter, ' ', cur_gb_Account, gc_fn_LayoutListDataTodayTabContent);
            //    gb_strSort = "";
            //});
            $('#content .sidebar-nav ul li').click(function () {
                $('#content .sidebar-nav ul li').removeClass('active');
                $(this).addClass('active');
                if ($(this).find('a').attr('id') == 'a2') {
                    _gb.pr(o73).ff(true, o73);
                    _gb.rf(o73);
                    //gb_curBoxDlg = $("#content .sidebar-content").colorbox({ inline: true, width: "97%", height: "97%", href: "#o73", title: _gb.ll(0, o73) });
                    $(this).colorbox({ inline: true, width: "97%", height: "97%", href: "#o73", title: _gb.ll(0, o73) })
                }
            });


        });

        $(window).load(function () {
            cur_gb_Account = '<%= Session["gcUserName"] %>'; // có thời gian mã hóa tên của user để che lại
            cur_gb_GroupRight = '<%= Session["gcRightGroup"] %>';
            cur_gb_Branch = '<%= Session["branchId"] %>';

            //viết thành hàm configRight gọi mỗi khi cần set
            //gc_fn_Gobal_ConfigRightLoadForm();
            $("#gc_gobal_PagerTopID").hide();

            //click vao cái đầu tiên
            $("#profileTab").click();
        });



    </script>


</head>

<body>
    <a id='URLDownloadFile' style='display: none;' href=''></a>
    <form action="ClassInfo.aspx?paramExportFile=ExportToWord" method="post" id="downloaddata" style="display: none; visibility: hidden">
        <input type="submit" value="download" style="display: none; visibility: hidden" />
    </form>

    <!--Dùng để kiểm gán các biến toàn cục-->

    <!--End Biến toàn cục-->

    <!-- Header Information -->
    <%--<gc_header:Header ID='gc_header_ID' runat="server" />--%>
    <!-- End Header Information -->

    <!-- Change Password Information -->

    <!-- End Change Password  Information -->


    <!-- Change Password Information -->

    <!-- End Change Password  Information -->

    <form id="loginForm" runat="server">

        <!-- Webservice Information -->
        <asp:ScriptManager ID='gcSM' runat='server' EnablePageMethods='true' ScriptMode='Release'>
            <Services>

                <asp:ServiceReference Path="~/WSASMXGobal/Kernel.asmx" />

            </Services>
        </asp:ScriptManager>
        <!-- End webservice Information -->


        <div id="container">
            <div class="container">

                <!-- gc Header form : first time is enable-->
                <gc_MainMenu:MainMenu ID='gc_parent_MenuID' runat="server" />
                <div style="clear: both;"></div>
                <!-- End gc Header form -->

                <!-- This contains the hidden content for inline calls -->

                <div style='display: none'></div>


                <div style="clear: both;"></div>
                <!-- End gc Header form -->

                <!-- gc Search Filter : first time is enable-->

                <!-- End gc Search Filter -->



                <!-- gc Information : for notify successfull update, insert, error, first time is disable-->
                <div class="content" id="gc_gobal_InformationID">
                </div>
                <!-- End gc Information -->



                <!-- End gc Main Form -->
                <div class="content" id="gc_gobal_MainFormID">

                    <div class="alert alert-info alert-info-gc-small" id="gc_gb_MessageInfomation"><strong>Chú ý!</strong> Bạn phải gõ khoảng trắng vào ô text để search.</div>

                    <h2 id="gc_gbHTitle"></h2>



                    <!--tabs-->
                    <%--<div class="container br-phanloai" id="ShowSoDoBan">
        <a class="navbar-brand" href="#">» </a>
        <ul class="nav nav-tabs" id="myTab">
            <li class="active"><a id="profileTab" href="#profileTabContent" data-toggle="tab">Ghi phiếu</a></li>
            <li><a id="todayTab" href="#todayTabContent" data-toggle="tab">Phiếu trong ngày</a></li>
            <li class="active"><a id="profileTab_phieuthu" href="#profileTabContent_phieuthu" data-toggle="tab">Ghi phiếu</a></li>
            <li><a id="todayTab_phieuthu" href="#todayTabContent_phieuthu" data-toggle="tab">Phiếu trong ngày</a></li>         
        </ul>

        <div class="tab-content">
            <div class="tab-pane active" id="profileTabContent">
                        
            </div>
            <div class="tab-pane" id="todayTabContent">
                        
            </div>

            <div class="tab-pane active" id="profileTabContent_phieuthu">
                        
            </div>
            <div class="tab-pane" id="todayTabContent_phieuthu">
                        
            </div>
        </div>
        <%--</div>--%>
                    <!--/tabs-->
                    <div id="content" style="border: #ddd solid 2px;">
                        <div class="sidebar-nav" style="width: 250px; min-height: 800px; padding: 10px; border-right: #ddd solid 2px">
                            <ul class="nav nav-pills nav-stacked">
                                <li class="active" id="a1"><a href="#">Nhóm công việc</a></li>
                                <li><a href="#" id="a2">Mức công việc</a></li>
                                <li><a href="#" id="a3">Loại công việc</a></li>
                                <li><a href="#" id="a4">Công việc</a></li>
                                <li><a href="#" id="a5">Trạng thái công việc</a></li>
                                <li><a href="#" id="a6">Gán công việc</a></li>
                                <li><a href="#" id="a7">Tiêu chí công việc</a></li>
                                <li><a href="#" id="a8">Công việc ngoại lệ</a></li>
                                <li><a href="#" id="a9">Nhân viên</a></li>
                                <li><a href="#" id="a10">Event makerting</a></li>
                                <li><a href="#" id="a11">Báo cáo</a></li>
                            </ul>
                        </div>
                        <div class="sidebar-content">
                            
                        </div>
                    </div>

                    <!-- Pager at the top -->
                    <div id="gc_ClassInformationID" class="gc_ClassInformation">

                        <div id="gc_ClassInformationInnerID" class="gc_ClassInformationInner">
                        </div>
                    </div>
                    <!-- End pager at the top -->
                    <div style="clear: both;"></div>

                    <!-- Pager at the top -->
                    <gc_pagertop:PagerTop ID="gc_pagertopID" runat="server" />
                    <!-- End pager at the top -->

                    <div id="gc_gobal_ListDataID">
                    </div>
                    <div style="clear: both;"></div>


                </div>
                <!---content-->
                <!-- End gc Main Form -->
                <div style="clear: both;"></div>


                <!-- gc Tag Main form : first time is enable-->
                <div class="content" id="gc_gobal_TagMainFormID">
                </div>
                <!-- End Tag Main form form -->

                <!-- gc Footer form : first time is enable-->
                <div class="content" id="gc_gobal_FooterMainFormID">
                </div>
                <!-- End gc Footer form -->

                <div class="content gc-gb-advice">
                    <h3 id="chuthich"></h3>
                    <%--<ul class="menu">
            	<li><a href="#" title="">Tính năng mới</a></li>
            	<li><a href="#" title="">Tạo tài khoản</a></li>
            </ul>--%>
                </div>
            </div>
            <!--/.container-->
        </div>
        <!--/ #container-->

    </form>

    <!-- Footer Information -->
    <gc_footer:Footer ID='gc_footer_ID' runat="server" />
    <!-- End footer Information -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript" src="../jsGobalLib/widgets.js"></script>
    <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
    <script type="text/javascript" src="../jsGobalLib/load-image.min.js"></script>
    <!-- The Canvas to Blob plugin is included for image resizing functionality -->
    <script type="text/javascript" src="../jsGobalLib/canvas-to-blob.min.js"></script>
    <!--
     <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
    <script type="text/javascript" src="http://blueimp.github.io/JavaScript-Load-Image/js/load-image.min.js"></script>
    <script type="text/javascript" src="http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script> 
    -->

    <script type="text/javascript" src="../UserControl/bootstrap/assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../UserControl/bootstrap/assets/js/holder.js"></script>


</body>
</html>

